<?php
/**
 *
 * @author Strawberry🍓
 * @date 2021-06-08 11:39 上午
 *
 */

namespace app\api\service;


use EasyWeChat\Factory;
use think\facade\Config;
use think\Service;

class WxappService extends Service
{
    public function register()
    {
        $config  = Config::get('wxapp');
        $app = Factory::miniProgram($config);
        $this->app->bind('openPlatform',$app);
    }
}